package com.xj.api.bussiness.transferLicense.service.impl;

import com.xj.common.bussiness.transferLicense.entity.TbTransferLicense;
import com.xj.common.bussiness.transferLicense.mapper.TbTransferLicenseMapper;
import com.xj.api.bussiness.transferLicense.service.ITbTransferLicenseService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Hmemb
 * @since 2018-01-11
 */
@Service
public class TbTransferLicenseServiceImpl extends ServiceImpl<TbTransferLicenseMapper, TbTransferLicense> implements ITbTransferLicenseService {

    @Autowired
    private TbTransferLicenseMapper transferLicenseMapper;

    @Override
    public TbTransferLicense searchTransferLicenseAndImg(Integer id) {
        if(transferLicenseMapper.searchTransferLicenseAndImg(id) != null){
           return transferLicenseMapper.searchTransferLicenseAndImg(id);
        }
        return null;
    }

    @Override
    public List<TbTransferLicense> selectTransferLicenseByEntity(TbTransferLicense transferLicense) {
        return transferLicenseMapper.selectTransferLicenseByEntity(transferLicense);
    }
}
